package com.perfma.xtest.zsai;

import com.alibaba.fastjson.JSON;

import java.io.UnsupportedEncodingException;

/**
 * @author: junhui.si
 * @date: 2024-03-08 17:14
 **/
public class Demo {
//    public static void main(String[] args) throws Exception {
//
//        String AppKey = "a42dacff-cd17-4b0e-946d-f5c4de11c08d"; // AppKey
//        String AppSecret = "f9eaa9eec84c91ce935b480e5b00b02f"; // AppSecret
//        String Source = "17f4d36d-752c-400d-91f1-920b14ddc01b"; // Source(部分接口可能取值AppId)
//
//        AIPayload huangqingfeng = new AIPayload();
//        huangqingfeng.setFullOrgName("招商总部_金融科技中心_系统运行部");
//        huangqingfeng.setOaCode("zhangrui21");
//        huangqingfeng.setOrgId("OR1000322706");
//        huangqingfeng.setOrgName("系统运行部");
//        huangqingfeng.setUserName("张瑞");
//        String payload = JSON.toJSONString(huangqingfeng);
//
////        String getUrl = "http://openapi.cmstest.com/test/llm/v1/openapi/query"; // 用户 API 的访问路径
//        String postUrl = "http://openapi.cmstest.com/test/llm/v1/openapi/query"; // 用户 API 的访问路径
////        String getResult = SignAndSend.doGet(postUrl, AppKey, AppSecret, Source, payload);
//        String postResult = SignAndSend.doPost(postUrl, AppKey, AppSecret, Source, payload);
//        System.out.println(postResult);
//    }

    public static void main(String[] args) throws UnsupportedEncodingException {
        String a1 = "招商总部_金融科技中心_系统运行部";
        System.out.println(new String(a1.getBytes("utf-8"),"iso-8859-1"));
        String a2 = "系统运行部";
        System.out.println(new String(a2.getBytes("utf-8"),"iso-8859-1"));
        String a3 = "张瑞";
        System.out.println(new String(a3.getBytes("utf-8"),"iso-8859-1"));
    }

}
